rank of a matrix root maths academy